-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nvt pref name #394
Nvt pref name #394
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with hardcoded OIDs it's harder to tell what NVTs are, for example to check for typos and
copy-paste errors, so I think it may be a good idea to define macros for them.
Also, are you going to add the migrator yourself or would you prefer me or Matt to implement it?
ed58707
to
e544dc8
Compare
Thanks for the review @timopollmeier. I updated the PR to use #define's for the hardcoded values. I prefer if you do the migrator, as I may miss something there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also noticed now that the init_nvt_preference_iterator()
function would also need to be changed to take the OID as a parameter and to use the new format.
The other NVT preference iterator functions getting parts of the name should also be updated.
Fixed in c7ef673 |
c7ef673
to
01fb573
Compare
This will convert the names of NVT preferences to the new format using the OID instead of the name to identify the NVTs.
b9258b2
to
7023073
Compare
This ensures new_name and quoted_new_name are initialized even if no OID is found for a preference.
Now preferences are sent in ODP:PrefType:PrefName format.
Instead of using sscanf().
7023073
to
4e2d21a
Compare
Change NVT preferences format to OID:PrefType:PrefName. This allows plugins to change their script names without breaking existing configs.
PR contains changes needed to be able to rebuild/update nvt's and run scans with greenbone/openvas-scanner#275 using default configs (+ docmentation updates, changes I did on my way while grepping the code for hardcoded values etc,.)
Still needed: